<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout :: common_header(~{::title})">
    <title>采购财务数据 - ERP管理系统</title>
</head>
<body th:replace="layout :: common_body(~{::div.layui-body})">

<div class="layui-body" style="padding:15px;top: 0px;">
    <style type="text/css">
        .record-box h2 {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 40px;
        }

        .record-input input {
            width: 400px;
            height: 22px;
            line-height: 22px;
            font-size: 16px;
            padding: 14px 9px;
            border: 1px solid #787878;
        }
    </style>
    <!-- start sp-wrapper -->
    <link rel="stylesheet" href="/sb/stock.css"/>
    <div class="sp-wrapper">
        <div class="sp-tool">
            <span class="fl">
                <form action="/cw/purchase_info_list" method="get">
                    <b><input type="text"  name="billDate" th:value="${billDate}"   id="billDate" placeholder="采购日期" autocomplete="off" style="width: 120px;" /></b>
                <b><input type="text"  name="specNumber" style="width: 200px;" autocomplete="off" th:value="${specNumber}" placeholder="输入SKU"></b>
                <b><input type="submit" class="button" value="查询"></b>
                    <b>总共：&nbsp;[[${totalSize}]]&nbsp;条记录</b>
                </form>
            </span>
        </div>
        <div class="sp-table">
            <table>
                <thead>
                <tr>
                    <!-- <th>ID</th> -->
                    <th>SKU</th>
                    <th>规格</th>
                    <th>采购单价</th>
                    <th>采购数量</th>
                    <th>采购总金额</th>
                    <th>入库数量</th>
                    <th>采购日期</th>
                    <th>采购单号</th>
                    <th>供应商</th>

                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <!-- <td th:text="${item.id}">2019-4-11</td> -->
                    <td th:text="${item.specNumber}"></td>
                    <td th:text="${item.specName}"></td>
                    <td th:text="${item.price}"></td>
                    <td th:text="${item.quantity}"></td>
                    <td th:text="${item.amount}"></td>
                    <td th:text="${item.inQuantity}"></td>
                    <td th:text="${item.billDate}"></td>
                    <td th:text="${item.billNo}"></td>
                    <td th:text="${item.contactName}"></td>
                    <td >

                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="pages">
            <paging:pager th:value="${pageIndex}" th:rows="${totalSize}" th:size="${pageSize}"/>
        </div>
    </div>


    <script type="text/javascript" src="/sb/jquery.min.js"></script>
    <script type="text/javascript" src="/sb/Tips.min.js"></script>

    <style type="text/css">
        .check-box {
            position: relative;
            width: 900px;
            padding: 0 5px;
            font-size: 13px;
            color: #787878;
        }

        .check-info {
            line-height: 40px;
            overflow: hidden;
        }

        .check-info span {
            float: left;
            width: 18%;
            text-align: center;
        }

        .check-info span:nth-child(1) {
            width: 30%;
            text-align: left;
        }

        .check-info span:nth-child(5) {
            width: 16%;
            text-align: right;
        }

        .check-table {
            margin: 10px 0;
            max-height: 250px;
            overflow-y: auto;
        }

        .check-table table {
            width: 100%;
        }

        .check-table th, .check-table td {
            padding: 10px 0;
            font-size: 13px;
            text-align: center;
            border: 1px solid #787878;
        }

        .check-table th {
            padding: 5px 0;
        }
    </style>

    <script type="text/javascript">
        layui.use(['laydate','form'], function () {
            var laydate = layui.laydate;
            var form = layui.form;
            laydate.render({
                elem: '#billDate'
            });
        });

    </script>
</div>
</div>
</body>
</html>
